---
layout: "default"
title: "Streamable"
description: "Swift documentation for 'Streamable': A source of text streaming operations.  Streamable instances can
be written to any output stream."
keywords: "Streamable,protocol,swift,documentation,writeTo"
root: "/v2.1"
---

<div class="intro-declaration"><code class="language-swift">protocol Streamable</code></div>

<div class="discussion comment">
    <p>A source of text streaming operations.  <code>Streamable</code> instances can
be written to any <em>output stream</em>.</p>

<p>For example: <code>String</code>, <code>Character</code>, <code>UnicodeScalar</code>.</p>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<span class="viz"><a href="hierarchy/">View Protocol Hierarchy &rarr;</a></span>
</td>
</tr>



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>







<h3>Instance Methods</h3>
<div class="declaration" id="func-writeto-inout_">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-writeto-inout_">func writeTo(<wbr>inout:)</a>
     <span class="required">Required</span>    
<div class="comment collapse" id="comment-func-writeto-inout_"><div class="p">
    <p>Write a textual representation of <code>self</code> into <code>target</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func writeTo&lt;Target : OutputStreamType&gt;(inout target: Target)</code>
    
    
</div></div>
</div>


